﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ControlChangePassMarketers.ascx.cs" Inherits="UserControl_ControlChangePassMarketers" %>
 <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>


<%@ Register src="uscMsgBox.ascx" tagname="uscMsgBox" tagprefix="uc1" %>
<link rel="stylesheet" href='<%=ResolveUrl("~/LayoutCss/K_BaoCaoFormLayout.css")%>' type="text/css" />
<script type="text/javascript">
    function pageLoad() {
        $("#<%= ImgSave.ClientID %>").click(function () {
            if ($("#<%= txtOldPass.ClientID %>").val().length > 0 && $("#<%= txtNewPass.ClientID %>").val().length > 0 && $("#<%= txtNewPass.ClientID %>").val() == $("#<%= txtRetypeNewPass.ClientID %>").val()) {
                $.blockUI({
                    message: '<h1>Xin vui lòng chờ xử lý</h1>',
                    css: {
                        border: 'none',
                        padding: '15px',
                        backgroundColor: '#f00',
                        opacity: .5,
                        color: '#fff'
                    }
                });
            }
        });


        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
        function EndRequestHandler(sender, args) {
            $.unblockUI();
        }
    }  
   
</script>  
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <fieldset>
            <legend>Đổi mật khẩu cho online marketers</legend>
        </fieldset>
            <asp:Panel ID="Panel1" runat="server" BackColor="#EBEBBE" BorderStyle="None" 
                    Height="33px" Width="100%">
                   
                    <asp:ImageButton ID="ImgSave" runat="server" ImageUrl="~/image/Save.png" 
                        OnClick="ImgSave_Click" Width="25px" Height="25px" ToolTip="Lưu thông tin" />
                     
             </asp:Panel>
    <br />
     <fieldset>
                    <div class="fm-req">
                       <label for="TxtMaNganhHang">Tên đăng nhập:</label>
                       <asp:TextBox ID="txtUserName" ReadOnly="true" BackColor="Yellow" runat="server"></asp:TextBox>
                       
                   </div> 
                    <div class="fm-req">
                       <label for="TxtMaNganhHang">Mật khẩu cũ:</label>
                       <asp:TextBox TextMode="Password" ID="txtOldPass" runat="server"></asp:TextBox>
                       <asp:RequiredFieldValidator ControlToValidate="txtOldPass" Display="None"  ID="RequiredFieldValidator1" runat="server" ErrorMessage="Phải nhập mật khẩu cũ">
                       </asp:RequiredFieldValidator>
                       <cc1:ValidatorCalloutExtender TargetControlID="RequiredFieldValidator1" ID="ValidatorCalloutExtender1" runat="server">
                       </cc1:ValidatorCalloutExtender>
                    </div>
                    <div class="fm-req">
                       <label for="TxtMaNganhHang">Mật khẩu mới:</label>
                       <asp:TextBox TextMode="Password" ID="txtNewPass" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ControlToValidate="txtNewPass" Display="None"  ID="RequiredFieldValidator3" runat="server" ErrorMessage="Phải nhập mật khẩu mới">
                       </asp:RequiredFieldValidator>
                       <cc1:ValidatorCalloutExtender TargetControlID="RequiredFieldValidator3" ID="ValidatorCalloutExtender2" runat="server">
                       </cc1:ValidatorCalloutExtender>
                    </div>
                    <div class="fm-req">
                       <label for="TxtMaNganhHang">Nhập lại mật khẩu mới:</label>
                       <asp:TextBox TextMode="Password" ID="txtRetypeNewPass" runat="server"></asp:TextBox>
                      <asp:CompareValidator ID="CompareValidator1" Display="None" runat="server" Operator="Equal"  ControlToCompare="txtNewPass" ControlToValidate="txtRetypeNewPass" ErrorMessage="Không chính xác mật khẩu mới"></asp:CompareValidator>
                       <cc1:ValidatorCalloutExtender TargetControlID="CompareValidator1" ID="ValidatorCalloutExtender3" runat="server">
                       </cc1:ValidatorCalloutExtender>
                    </div>
    </fieldset>
    </ContentTemplate>
</asp:UpdatePanel>
<uc1:uscMsgBox ID="uscMsgBox1" runat="server" />